<template>
  <view class="card-header-box">
    <view class="header">{{ title }}</view>
    <slot></slot>
  </view>
</template>

<script>
  export default {
    name: 'CardHeaderBox',
    props: {
      title: { type: String, default: '' }
    }
  }
</script>

<style lang="scss" scoped>
.card-header-box {
  margin-top: 20rpx;
  padding: 24rpx 32rpx;
  width: 686rpx;
  height: 610rpx;
  background: #ffffff;
  border-radius: 12rpx;
  box-shadow: 0rpx 2rpx 6rpx rgba(0, 0, 0, 0.03);
  box-sizing: border-box;

  .header {
    font-size: 28rpx;
    color: #333333;
    font-weight: 600;
  }
}
</style>